#!/usr/bin/env bash
script_pwd=$(dirname "$0")


base_path=~/docker/ELK/kafka1/
rm -rf $base_path/config
mkdir -p $base_path/config
mkdir -p $base_path/data
mkdir -p $base_path/logs
cp -r $script_pwd/config/server1.properties $base_path/config/server.properties
cp -r $script_pwd/config/log4j.properties $base_path/config/.




base_path=~/docker/ELK/kafka2/
rm -rf $base_path/config
mkdir -p $base_path/config
mkdir -p $base_path/data
mkdir -p $base_path/logs
cp -r $script_pwd/config/server2.properties $base_path/config/server.properties
cp -r $script_pwd/config/log4j.properties $base_path/config/.




base_path=~/docker/ELK/kafka3/
rm -rf $base_path/config
mkdir -p $base_path/config
mkdir -p $base_path/data
mkdir -p $base_path/logs
cp -r $script_pwd/config/server3.properties $base_path/config/server.properties
cp -r $script_pwd/config/log4j.properties $base_path/config/.
